package com.hpsk.shopgen.model.genbasic.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hpsk.shopgen.model.genbasic.entity.GenBasic;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hpsk.shopgen.model.genbasic.param.GenBasicAddParam;
import com.hpsk.shopgen.model.genbasic.param.GenBasicIdParam;
import com.hpsk.shopgen.model.genbasic.param.GenBasicPageParam;
import com.hpsk.shopgen.model.genbasic.result.GenBasicTableColumnResult;
import com.hpsk.shopgen.model.genbasic.result.GenBasicTableResult;
import com.hpsk.shopgen.model.genbasic.vo.GenBasicVo;

import java.util.List;

/**
 * <p>
 * 生成基础 服务类
 * </p>
 *
 * @author huangwang
 * @since 2025-07-07
 */
public interface IGenBasicService extends IService<GenBasic> {

    IPage<GenBasic> page(GenBasicPageParam genBasicPageParam);
    /**
     * 获取使用表信息
     * @return
     */
    List<GenBasicTableResult> getAllTableInfo();

    /**
     * 根据表名获取表字段信息
     * @param tableName
     * @return
     */
    List<GenBasicTableColumnResult> tableColumns(String tableName);

    /**
     * 添加
     * @param genBasicAddParam
     * @return
     */
    GenBasic add(GenBasicAddParam genBasicAddParam);

    /**
     * 详情获取
     * @param genBasicIdParam
     * @return
     */
    GenBasic detail(GenBasicIdParam genBasicIdParam);
}
